﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="branch_list.aspx.cs" Inherits="admin_user_branch_list" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>部门列表</title>
<link type="text/css" rel="stylesheet" href="../scripts/ui/skins/Aqua/css/ligerui-all.css" />
<link type="text/css" rel="stylesheet" href="../images/style.css" />
<script type="text/javascript" src="../scripts/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../scripts/ui/js/ligerBuild.min.js"></script>
<script type="text/javascript" src="../js/function.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            SetRowClass();
            ReloadJs();
        })      
    </script>
</head>
<body class="mainbody">
<form id="form1" runat="server">
 <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>   
    <div class="navigation">首页 &gt; 控制面板 &gt; 部门管理</div>
    <div class="tools_box">
	    <div class="tools_bar">
		    <%--<div class="search_box">
			    <asp:TextBox ID="txtKeywords" runat="server" CssClass="txtInput"></asp:TextBox>
                <asp:Button ID="btnSearch" runat="server" Text="搜 索" CssClass="btnSearch" onclick="btnSearch_Click" />
		    </div>--%>
          <%--  <a href="manager_list.aspx" class="tools_btn"><span><b class="return">管理员列表</b></span></a>--%>
		    <a href="branch_edit.aspx?action=<%=ActionEnum.Add %>" class="tools_btn"><span><b class="add">添加部门</b></span></a>
		    <a href="javascript:void(0);" onclick="checkAll(this);" class="tools_btn"><span><b class="all">全选</b></span></a>
            <asp:LinkButton ID="btnDelete" runat="server" CssClass="tools_btn" onclick="btnDelete_Click" 
            OnClientClick="return ExePostBack('btnDelete','删除部门后不可恢复，您确定吗？');"><span><b class="delete">批量删除</b></span></asp:LinkButton>
        </div>
    </div>
     <!--列表展示.开始-->
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
    <asp:Repeater ID="rptList" runat="server">
    <HeaderTemplate>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
      <tr>
        <th width="6%">选择</th>
        <th align="left">部门名称</th>
       <%-- <th width="12%">类型</th>--%>
        <th width="10%">操作</th>
      </tr>
    </HeaderTemplate>
    <ItemTemplate>
      <tr>
        <td align="center"><asp:CheckBox ID="chkId" CssClass="checkall" runat="server" />
        <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" /></td>
        <td><a href="branch_edit.aspx?action=<%#ActionEnum.Edit %>&id=<%#Eval("id")%>"><%#Eval("branch_name")%></a></td>
      <%--  <td align="center"><%#GetTypeName( Convert.ToInt32(Eval("role_type")))%></td>--%>
        <td align="center"><a href="branch_edit.aspx?action=<%#ActionEnum.Edit %>&id=<%#Eval("id")%>">修改</a></td>
      </tr>
    </ItemTemplate>
    <FooterTemplate>
      <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"10\">暂无记录</td></tr>" : ""%>
      </table>
    </FooterTemplate>
    </asp:Repeater>
     <!--列表展示.结束-->
    <div class="line15">
    </div>
    <div class="page_box">
        <div id="PageContent" runat="server" class="flickr right">
        </div>
        <div class="left"><%--显示
            <asp:DropDownList ID="ddlNum" runat="server" CssClass="select2" AutoPostBack="True"
                OnSelectedIndexChanged="ddlNum_SelectedIndexChanged1">
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>15</asp:ListItem>
                <asp:ListItem>20</asp:ListItem>
                <asp:ListItem>50</asp:ListItem>
                <asp:ListItem>1</asp:ListItem>
            </asp:DropDownList>&nbsp;条/页--%>
              显示 <asp:Button ID="btn10" runat="server" Text="10" CssClass="btnnum" onclick="btn10_Click"   />
             <asp:Button ID="btn20" runat="server" Text="20" CssClass="btnnum" onclick="btn20_Click"   />
             <asp:Button ID="btn50" runat="server" Text="50" CssClass="btnnum" onclick="btn50_Click"   />条/页&nbsp;
            共<asp:Label ID="lblCount" runat="server" Text=""></asp:Label>条记录
        </div>
        <webdiyer:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
            runat="server" HorizontalAlign="Right" PageSize="10" OnPageChanged="AspNetPager1_PageChanged"
            NumericButtonCount="8" CurrentPageButtonPosition="Center" ShowDisabledButtons="false"
            AlwaysShowFirstLastPageNumber="true" NextPageText="&nbsp;&nbsp;&nbsp;下一页&nbsp;&nbsp;&nbsp;" PrevPageText="&nbsp;&nbsp;&nbsp;上一页&nbsp;&nbsp;&nbsp;" ShowFirstLast="False">
        </webdiyer:AspNetPager>
    </div>
      </ContentTemplate></asp:UpdatePanel>
    <div class="line10"></div>
</form>
</body>
</html>

